<?php
	class Admin_Form_News extends Zend_Form{
		public function __construct($options = null){
			parent::__construct($options);
			
			$titleVi = new Zend_Form_Element_Text('titleVi');
			$titleVi->addFilter('StringTrim')
					->setRequired(true)
					->addValidator('NotEmpty')
					->setAttrib('class','form-control')
					->setDecorators(array('ViewHelper'));
			
			$aliasVi = new Zend_Form_Element_Text('aliasVi');		
			$aliasVi->addFilter('StringTrim')
					->setRequired(true)
					->addValidator('NotEmpty')
					->setAttrib('class','form-control')
					->setDecorators(array('ViewHelper'));
					
			$introVi = new Zend_Form_Element_Textarea('introVi');
			$introVi->addFilter('StringTrim')
					->setRequired(true)
					->addValidator('NotEmpty')
					->setAttrib('class','form-control')
					->setDecorators(array('ViewHelper'));
					
			$contentVi = new Zend_Form_Element_Textarea('contentVi');	
			$contentVi->addFilter('StringTrim')
					->setRequired(true)
					->addValidator('NotEmpty')
					->setAttrib('class','form-control')
					->setDecorators(array('ViewHelper'));
					
			$status = new Zend_Form_Element_Radio('status');
			$status->addFilter('StringTrim')
					->setRequired(true)
					->setMultiOptions(array('1'=>'Có','2'=>'Không'))
					->setDecorators(array('ViewHelper'));
					
			$arrElement = array(
				$titleVi,
				$aliasVi,
				$introVi,
				$contentVi,
				$status
				
			);
			$this->addElements($arrElement);
		}
	}

?>